package com.genius.framework.multitenancy.crontask;

import com.genius.framework.multitenancy.annotation.CommonScheduleTask;
import com.genius.framework.multitenancy.annotation.CommonScheduleTaskMethod;

@CommonScheduleTask(name = "testTask2", description = "定时任务示例2", active = true)
public class TestTask2 {
    @CommonScheduleTaskMethod("定时任务示例2 - 有参示例任务")
    public void taskWithParams(String param1, Integer param2) {
        System.out.println("有参示例任务：" + param1 + ", " + param2);
    }

    @CommonScheduleTaskMethod
    public void taskNoParams() {
        System.out.println("无参示例任务");
    }
}
